package com.itbaizhan.controller;

/**
 * @author spf
 * @date 2024/2/15
 * @time 11:29
 */

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 控制器API
 */
@RefreshScope
@RestController
public class ConfigController {

    @Value("${config.info}")
    private String configinfo;

    @GetMapping("/configinfo")
    public String getConfigInfo(){
        return configinfo;
    }
}
